﻿using System.ComponentModel.DataAnnotations.Schema;
using Sharp.Domain.PlatformBoundedContext.MasterDataModule.Aggregates;
using Sharp.Domain.Model;

namespace Sharp.Domain.PlatformBoundedContext.PersonModule.Aggregates
{
    public partial class Employee : Person
    {

        public Employee()
        {

        }


        /// <summary>
        /// 岗位
        /// </summary>
        public System.Guid? JobId { get; set; }




        /// <summary>
        /// 参加工作
        /// </summary>
        public string WorkDate { get; set; }
        ///// <summary>
        ///// 婚姻状况
        ///// </summary>
        //[ForeignKey("MarriedCode")]
        //public Married Married { get; set; }

        ///// <summary>
        ///// 任职状况
        ///// </summary>
        //[ForeignKey("PostStateCode")]
        //public PostState PostState { get; set; }

        ///// <summary>
        ///// 职称
        ///// </summary>
        //[ForeignKey("PosttitleCode")]
        //public Posttitle Posttitle { get; set; }
        ///// <summary>
        ///// 学历
        ///// </summary>
        //[ForeignKey("DegreeCode")]
        //public Degree Degree { get; set; }
        ///// <summary>
        ///// 学历
        ///// </summary>
        //[ForeignKey("EducationalBackgroundCode")]
        //public EducationalBackground EducationalBackground { get; set; } 

        /// <summary>
        /// 岗位
        /// </summary>
        [ForeignKey("JobId")]
        public virtual Job Job { get; set; }

        /// <summary>
        /// 学历
        /// </summary>
        public string EducationalBackgroundCode { get; set; }
        /// <summary>
        /// 职务
        /// </summary>
        public string JobTitle { get; set; }

         
        /// <summary>
        /// 婚姻状况代码
        /// </summary>
        public string MarriedCode { get; set; }
     
        /// <summary>
        /// 任职状况
        /// </summary>
        public string PostStateCode { get; set; }
        /// <summary>
        /// 职称
        /// </summary>
        public string PosttitleCode { get; set; }
  

        /// <summary>
        /// 学历代码
        /// </summary>
        public string DegreeCode { get; set; }
    }
}